package com.uum.admin.api;

import com.uum.admin.api.fallback.OperationLogFallbackClient;
import com.uum.common.core.entity.SysOperationLog;
import com.uum.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "uum-admin",contextId = "operation-log",fallback = OperationLogFallbackClient.class)
public interface OperationLogFeignClient {

    @PostMapping("/api/v1/operation/add")
    Result addOperationLog(@RequestBody SysOperationLog operationLog);
}
